package mest.service.hank;

import mest.VO.hank.dataTraffic_model.plan_takematerial_Model;
import mest.VO.hank.model.save_fileModel;
import mest.dao.hank.plan_takematerialMapper;
import mest.entity.plan_takematerial;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PlanTakematerialService {

    int deleteByPrimaryKey(Integer id, String theirDb);

    int insert(plan_takematerial record, String theirDb);
    /**
     * 动态插入值
     * @param record
     * @return
     */
    int insertSelective(plan_takematerial record,String theirDb);

    plan_takematerial selectByPrimaryKey(Integer id,String theirDb);
    /**
     * 动态更新某个值
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(plan_takematerial record,String theirDb);

    int updateByPrimaryKey(plan_takematerial record,String theirDb);




    /**
     * 1.model查询+模糊
     * @param record
     * @return
     */
    List<Map> queryAllModel(Integer index,
                            Integer pageSize, String record, Integer state,String theirDb);

    /**
     * 2.model 总行数查询
     * @param record
     * @return
     */

    int findCount(String record, Integer state,String theirDb);


    /**
     * 更改计划领料单状态的方法
     * 0-未完成
     * 1-已完成
     * 2-未按预期领料
     * @param state
     * @return
     */



    Map planTakeMaterial_changeState(plan_takematerial record, String theirDb);


    int insertResult_id(Map<String, Object> map);

	int updateByMap(Map<String, Object> map);

	int existBom(Map<String, Object> map);
}